<?php
/**
 * Created by PhpStorm.
 * User: zlkmu
 * Date: 2017/10/4
 * Time: 22:30
 * 用于牛牛的房间类
 * 继承自Room
 */
require_once('Room.php');
require_once('NiuNiuManager.php');
class NiuNiuRoom extends Room {
    //牛牛牌堆
    private $niuNiuManager;
    private $bankerId;//庄家ID

    /**
     * NiuniuRoom constructor.
     * @param $roomRequest 创建房间时，玩家传来的房间参数
     */
    function __construct($roomRequest)
    {
        //创建房间时 初始化所有参数
        $this->isBegin = false;
        $this->totalCount=$roomRequest["totalCount"];//总局数
        $this->currentRound=0;//当前局数
    }

    //设置庄家ID
    function setBankerID($userId){
        $this->bankerId=$userId;
    }

    //获取庄家ID
    function getBankerID(){
        return $this->bankerId;
    }

    //获取房间是否开始游戏
    function getIsBegin(){
        return $this->isBegin;
    }


}
?>